package com.probox.common.entity.domain.customer;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import com.probox.common.core.annotation.Excel;

/**
 * 客户信息TOKEN对象 customer_info_account_token
 *
 * @author zsy
 * @date 2021-05-25
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("customer_info_account_token")
@ApiModel(description="客户账号信息token类")
public class CustomerInfoAccountToken implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    //默认主键自增
    @ApiModelProperty(value = "客户账号信息ID")
    @TableId(value = "TOKEN_ID", type = IdType.AUTO)
    private Long tokenId;
    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID")
    @Excel(name = "会员ID")
    private Long customerUid;
    /**
     * 账号ID
     */
    @ApiModelProperty(value = "账号ID")
    @Excel(name = "账号ID")
    private Long customerAccountUid;
    /**
     * 存取token
     */
    @ApiModelProperty(value = "存取token")
    @Excel(name = "存取token")
    private String accessToken;

    /**
     * 客户端ip
     */
    @ApiModelProperty(value = "客户端ip")
    @Excel(name = "客户端ip")
    private String clientIp;

    /**
     * 私钥
     */
    @ApiModelProperty(value = "私钥")
    @Excel(name = "私钥")
    private String secretKey;
    /**
     * 数据状态
     */
    @ApiModelProperty(value = "数据状态")
    @Excel(name = "数据状态")
    private String dataStatus;
    /**
     * 过期时间
     */
    @ApiModelProperty(value = "过期时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @Excel(name = "创建人")
    private Long createUser;
    /**
     * open ID
     */
    @ApiModelProperty(value = "open ID")
    @Excel(name = "open ID")
    private String openId;
    /**
     * 平台ID
     */
    @ApiModelProperty(value = "平台ID")
    @Excel(name = "平台ID")
    private Long platformUid;

    @ApiModelProperty(value = "访问来源")
    @Excel(name = "访问来源")
    private String sourcePort;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    @Excel(name = "修改人名称")
    private String updateName;

}
